<template>
  <h2>财务管理页面</h2>
  <el-table :data="mList" :default-sort="{prop:'bnum',order:'ascending'}" stripe>
    <el-table-column fixed prop="bnum" label="货单号" sortable/>
    <el-table-column prop="state" label="状态"/>
    <el-table-column prop="checkOut" label="结算时间" sortable/>
    <el-table-column prop="money" label="金额" sortable/>
  </el-table>
</template>

<script>
import {getBillList} from "@/scripts/data/booking";

export default {
  name: "AdminMoney",
  data() {
    return {
      isDownloading: true,
      mList: [],
    }
  },
  methods: {
    refreshData() {
      this.isDownloading = true;
      getBillList((data) => {
        this.mList = data
        this.isDownloading = false;
      })
    }
  },
  mounted() {
    this.refreshData();
  }
}
</script>

<style scoped>

</style>